import { apiHost } from '@/utils/request';
// 账号类型
export const AccountType = {
  admin: '管理员',
  staff: '员工',
  customer: '顾客',
};
export const getRoleColor = (role: string) => {
  switch (role) {
    case 'admin':
      return '#f50';
    case 'staff':
      return '#2db7f5';
    case 'customer':
      return '#87d068';
    default:
      return 'default';
  }
};

const prefix = apiHost;
// 图片上传地址
export const UPLOAD_IMAGE_URL = `${prefix}/upload`;

// 轮播图状态
export const CarouselStatus = {
  0: '已展示',
  1: '不展示',
};
// 订单状态
export const OrderStatus = {
  already_pay: '已支付',
  already_delivery: '已发货',
  already_sign: '已签收',
  already_finish: '已完成',
};
export const OrderStatusMap = ['already_pay', 'already_delivery', 'already_sign', 'already_finish'];
